
for row in range(1,10):
    # 打印空白区域，保证格式化输出
    for block in range(9,row,-1):
        print(end="       ")

    for col in range(row,0,-1):    # 倒序打印行（9,8,7...）
        res = row * col
        print("{0}*{1}={2:2d}".format(col, row, res ),end=" ")

    print()